1 // ----------------------------------------------------------------------------------------------------------------------
2 // <summary>The Photon Chat Api enables clients to connect to a chat server and communicate with other clients.</summary>
3 // <remarks>ChatClient
is the main class of this api.</remarks>
4 // <copyright company=
"Exit Games GmbH">Photon Chat Api - Copyright (C) 2014 Exit Games GmbH</copyright>
5 // ----------------------------------------------------------------------------------------------------------------------

6
7 namespace
ExitGames.Client.Photon.Chat
8 {

9     ///
<summary>Possible states for a LoadBalancingClient.</summary>
10     
public enum ChatState
11     {

12         ///
<summary>Peer is created but not used yet.</summary>
13         Uninitialized,

14         ///
<summary>Connecting to master (includes connect, authenticate and joining the lobby)</summary>
15         ConnectingToNameServer,

16         ///
<summary>Connected to master server.</summary>
17         ConnectedToNameServer,

18         ///
<summary>Usually when Authenticated, the client will join a game or the lobby (if AutoJoinLobby is true).</summary>
19         Authenticating,

20         ///
<summary>Usually when Authenticated, the client will join a game or the lobby (if AutoJoinLobby is true).</summary>
21         Authenticated,

22         ///
<summary>Transition from master to game server.</summary>
23         DisconnectingFromNameServer,

24         ///
<summary>Transition to gameserver (client will authenticate and join/create game).</summary>
25         ConnectingToFrontEnd,

26         ///
<summary>Connected to gameserver (going to auth and join game).</summary>
27         ConnectedToFrontEnd,

28         ///
<summary>Transition from gameserver to master (after leaving a room/game).</summary>
29         DisconnectingFromFrontEnd,

30         ///
<summary>Currently not used.</summary>
31         QueuedComingFromFrontEnd,

32         ///
<summary>The client disconnects (from any server).</summary>
33         Disconnecting,

34         ///
<summary>The client is no longer connected (to any server). Connect to master to go on.</summary>
35         Disconnected,
36     }
37 }


----------------------------------------------------------------------------------------------------------------------

The Photon Chat Api enables clients to connect to a chat server and communicate with other clients.

ChatClient is the main class of this api.

Photon Chat Api - Copyright (C) 2014 Exit Games GmbH

----------------------------------------------------------------------------------------------------------------------

Possible states for a LoadBalancingClient.

Peer is created but not used yet.

Connecting to master (includes connect, authenticate and joining the lobby)

Connected to master server.

Usually when Authenticated, the client will join a game or the lobby (if AutoJoinLobby is true).

Usually when Authenticated, the client will join a game or the lobby (if AutoJoinLobby is true).

Transition from master to game server.

Transition to gameserver (client will authenticate and joincreate game).

Connected to gameserver (going to auth and join game).

Transition from gameserver to master (after leaving a roomgame).

Currently not used.

The client disconnects (from any server).

The client is no longer connected (to any server). Connect to master to go on.




Trò chơi Tic-Tac-Toe, game đánh caro full source code 53.545 lượt xem

Gõ tìm kiếm nhanh...